package com.smedi.ismedi.web.starter.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-6-11 12:00
 */
@Data
@Accessors(chain = true)
public class PaginationData<T> {
    @ApiModelProperty(value = "当前页")
    private int current;

    @ApiModelProperty(value = "总页数")
    private int pages;

    @ApiModelProperty(value = "当前行数")
    private int size;

    @ApiModelProperty(value = "总记录数")
    private int total;

    @ApiModelProperty(value = "数据")
    private List<T> records = new ArrayList<>();
}
